<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<f:view>
	<h:head>
		<link type="text/css" rel="stylesheet" href="themes/bluesky/skin.css" />
		<link type="text/css" rel="stylesheet"
			href="resources/css/wienerhelden.css" />
	</h:head>
	<h:body>
		<ui:composition template="template.xhtml">
			<ui:define name="content">

				<script src="http://maps.google.com/maps/api/js?sensor=false"
					type="text/javascript" />
				<script type="text/javascript"
					src="../resources/javascript/mapCodeSovtivityPoint.js" />
				<div style="overflow: hidden;">
					

						<h1>
							<h:outputText value="Work Done?" />
						</h1>

						<h2>Ticket:</h2>
						<dl>
							<dt>ID:</dt>
							<dd>
								<h:outputText value="#{checkWorkDoneController.ticket.id}" />
							</dd>
							<dt>Description:</dt>
							<dd>
								<h:outputText
									value="#{checkWorkDoneController.ticket.description}" />
							</dd>
							<dt>Surveyor Description:</dt>
							<dd>
								<h:outputText
									value="#{checkWorkDoneController.ticket.surveyorDescription}" />
							</dd>
							<dt>Parter:</dt>
							<dd>
								<ul class="no-circles">
									<li><h:outputText
											value="#{checkWorkDoneController.ticket.selectedPartner.name}" /></li>
									<li><h:outputLink
											value="mailto:#{checkWorkDoneController.ticket.selectedPartner.email}">
										#{checkWorkDoneController.ticket.selectedPartner.email}	
										</h:outputLink>
									</li>
								</ul>
							</dd>
							<dt>Worker:</dt>
							<dd>
								<ul class="no-circles"> 
									<li><h:outputText
											value="#{checkWorkDoneController.ticket.assignedWorker.firstName}" />
										<h:outputText value="&#160;" /> <h:outputText
											value="#{checkWorkDoneController.ticket.assignedWorker.lastName}" /></li>
									<li><h:outputLink
											value="tel:#{checkWorkDoneController.ticket.assignedWorker.telNo}">
										#{checkWorkDoneController.ticket.assignedWorker.telNo}		
										</h:outputLink>
									</li>
								</ul>

							</dd>
						</dl>

						<h2>Customer</h2>

						<dl>
							<dt>Name:</dt>
							<dd>
								<h:outputText
									value="#{checkWorkDoneController.ticket.customer.firstName}" />
								<h:outputText value="&#160;" />
								<h:outputText
									value="#{checkWorkDoneController.ticket.customer.lastName}" />
							</dd>
							<dt>E-Mail:</dt>
							<dd>
								<h:outputLink
									value="mailto:#{checkWorkDoneController.ticket.customer.mailAddress}" >
									#{checkWorkDoneController.ticket.customer.mailAddress}	
								</h:outputLink>
							</dd>
							<dt>Telephone No.:</dt>
							<dd>
								<h:outputLink value="tel:#{checkWorkDoneController.ticket.customer.telNo}">
									#{checkWorkDoneController.ticket.customer.telNo}
								</h:outputLink>
							</dd>
						</dl>

					<h:form id="workDoneCheckingForm">
					<div class="formBlock">
						<fieldset>
							<legend>Additional Information (for informing by E-Mail only)</legend>
			
						
						<div>
							<h:outputLabel for="additionalInformation" value="Here you can add additional Information that the renter will receive via E-Mail"/>
							<h:inputTextarea cols="30" rows="10" id="additionalInformation"
								value="#{checkWorkDoneController.additionalInformation}" />
						</div>
						<div style="clear: both;">
							<p:commandButton id="submitData" value="Inform Renter by E-Mail"
								icon="ui-icon-check"
								action="#{checkWorkDoneController.finishCheckWorkWithMail}" />
							<p:commandButton id="submitDataWithMail" value="Renter Informed"
								icon="ui-icon-check"
								action="#{checkWorkDoneController.finishCheckWork}" />
						</div>
						
					</fieldset>
					</div>
					</h:form>
				</div>
			</ui:define>
		</ui:composition>
	</h:body>
</f:view>
</html>
